<template>
  <div id="app">
    <HomeworkMain />
  </div>
</template>

<script setup>
import HomeworkMain from './components/HomeworkMain.vue'
import { onMounted } from 'vue'
import { useAuthStore } from './store/auth'

const authStore = useAuthStore()

onMounted(async () => {
  // 检查登录状态
  try {
    await authStore.checkStatus()
  } catch (error) {
    console.log('未登录状态')
  }
})
</script>

<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  background-color: #f5f5f5;
}

#app {
  min-height: 100vh;
  padding: 20px;
}
</style>